/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tests.rect;

import java.awt.Color;
import java.io.IOException;
import org.junit.Test;
import pl.edu.amu.wmi.kino.visualjavafx.javafxcodegenerators.api.JavaFXCodeGenerator;
import pl.edu.amu.wmi.kino.visualjavafx.model.generators.ModelRectangleGenerator;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Application;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.shapes.Rectangle;
import tests.helpers.Test4Provider;

/**
 *
 * @author Admin
 */

//TODO : Grzegorz : Why such crappy framerate ?
public class RectTest4 {
    @Test
    public void main() throws IOException{
        Test4Provider m = new Test4Provider();
        Rectangle c = ModelRectangleGenerator.generateRectangle(500, 300, 100, 200, Color.RED, Color.BLUE, 5);
        Application app = m.getModelForObject(c);
        String res = JavaFXCodeGenerator.generateCode(app);
        System.out.println(res);
    }
}
